﻿
using NodeCanvas.Framework;
using ParadoxNotion.Design;

namespace Yoozoo.Gameplay.City.AI.Node
{
    [Category("Ggame/City")]
    public class NPCSetMoveSpeed : AIBaseNode
    {
        [RequiredField]
        public BBParameter<float> moveSpeed;

        protected override void OnExecute()
        {
            _entity.splineController.Speed = moveSpeed.value;
            EndAction(true);
        }
    }
}
